package com.qmerak.dao.impl;

import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.qmerak.dao.HibernateDao;
import com.qmerak.entity.UserEntity;

/**
 * @author Shaohong•Cheng
 * @mail shaohong726@126.com
 * @date 2013-4-6
 * @project TUManager
 */
@Repository
public class TestDao extends HibernateDao<UserEntity, String> {

	public List<Hashtable<String, Object>> query() {
		Iterator<UserEntity> iterator = this.list().iterator();
		while (iterator.hasNext()) {
			UserEntity userEntity = (UserEntity) iterator.next();
			System.out.println("entity:" + userEntity.getUserName());
		}
		return this.query("select * from t_user");
	}
}
